#import "BrillianceUnfoldCell.h"


@implementation BrillianceUnfoldCell

- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier {
	self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
	if (self) {

		self.selectionStyle = UITableViewCellSelectionStyleNone;
		//self.contentView.backgroundColor = UIColor.whiteColor;

		//: 初始化UI布局
		[self intrepidSetupViews];
	}
	return self;
}

- (void)setYonder:(BrillianceUnfoldModel *)yonder {
	_yonder = yonder;

	//: 配置cell的UI

	if (yonder.unity.count > 0) {
		[self.unwindWispImageView sd_setImageWithURL:[NSURL URLWithString:yonder.unity[0]] placeholderImage:nil];
	}

}
- (UIView *)xenophobeOpulentView {
	if (!_xenophobeOpulentView) {
	
        _xenophobeOpulentView = [[UIView alloc] initWithFrame:CGRectZero];
        _xenophobeOpulentView.size = CGSizeMake(69, 95);
        _xenophobeOpulentView.left = 32;
        _xenophobeOpulentView.top = 1;
	}
	return _xenophobeOpulentView;
}

//: _hoverAppleButton 的点击事件
- (void)action_1 {}

- (UIButton *)hoverAppleButton {
	if (!_hoverAppleButton) {
	
        _hoverAppleButton = [[UIButton alloc] initWithFrame:CGRectZero];
        _hoverAppleButton.frame = CGRectMake(50, 20, 49, 130);
        UIImage *kaleidoscopeXylophoneSerene = [UIImage imageNamed:@"images/icon_1.png"];
        if (kaleidoscopeXylophoneSerene) {
	        [_hoverAppleButton setImage:kaleidoscopeXylophoneSerene forState:UIControlStateNormal];
        }
        [_hoverAppleButton setTitle:@"button_1" forState:UIControlStateNormal];
        [_hoverAppleButton setTitle:@"button_selected_1" forState:UIControlStateSelected];
        [_hoverAppleButton setTitleColor:[UIColor colorWithRed:249/255.0 green:122/255.0 blue:218/255.0 alpha:0.7] forState:UIControlStateNormal];
        [_hoverAppleButton setTitleColor:[UIColor colorWithRed:139/255.0 green:80/255.0 blue:60/255.0 alpha:1.0] forState:UIControlStateSelected];
        [_hoverAppleButton addTarget:self action:@selector(action_1) forControlEvents:UIControlEventTouchUpInside];
	}
	return _hoverAppleButton;
}

//: self.tranquilHopefulButton 的点击事件
- (void)action_3 {}

- (void)intrepidSetupViews {
	//: 描述_0
	[self.contentView addSubview:self.xenophobeOpulentView];

	//: 描述_1
	[self.contentView addSubview:self.hoverAppleButton];


    //: 描述_2
    UIView *humbleQuake = [UIView new];
    humbleQuake.frame = CGRectMake(42, 38, 170, 132);
    self.nostalgiaInfiniteView = humbleQuake;
    [self.contentView addSubview:humbleQuake];


    //: 描述_3
    self.tranquilHopefulButton = [UIButton new];
    self.tranquilHopefulButton.frame = CGRectMake(7, 20, 180, 155);
    UIImage *nebulaQuestJoyous = [UIImage imageNamed:@"images/icon_3.png"];
    if (nebulaQuestJoyous) {
	    [self.tranquilHopefulButton setImage:nebulaQuestJoyous forState:UIControlStateNormal];
    }
    [self.tranquilHopefulButton setTitle:@"button_3" forState:UIControlStateNormal];
    [self.tranquilHopefulButton setTitle:@"button_selected_3" forState:UIControlStateSelected];
    [self.tranquilHopefulButton setTitleColor:[UIColor colorWithRed:166/255.0 green:39/255.0 blue:55/255.0 alpha:0.6] forState:UIControlStateNormal];
    [self.tranquilHopefulButton setTitleColor:[UIColor colorWithRed:94/255.0 green:6/255.0 blue:155/255.0 alpha:0.8] forState:UIControlStateSelected];
    [self.tranquilHopefulButton addTarget:self action:@selector(action_3) forControlEvents:UIControlEventTouchUpInside];
    [self.contentView addSubview:self.tranquilHopefulButton];


    //: 描述_4
    UIView *forestMerge = [UIView new];
    forestMerge.frame = CGRectMake(24, 46, 198, 175);
    self.prismView = forestMerge;
    [self.contentView addSubview:forestMerge];


    //: 描述_5
    UIView *yarnXenon = [UIView new];
    self.symphonyVowView = yarnXenon;
    [self.contentView addSubview:yarnXenon];
	[self.symphonyVowView mas_makeConstraints:^(MASConstraintMaker *make) {
		make.width.mas_equalTo(177);
		make.height.mas_equalTo(50);
		make.bottom.equalTo(@(24));
	}];


    //: 描述_6
    UITextView *riddle = [[UITextView alloc] init];
    self.harmonyKineticTextView = riddle;
    [self.contentView addSubview:riddle];
	[self.harmonyKineticTextView mas_makeConstraints:^(MASConstraintMaker *make) {
		make.width.mas_equalTo(61);
		make.height.mas_equalTo(193);
	}];


    //: 描述_7
    UIImageView *hopeful = [[UIImageView alloc] init];
    hopeful.contentMode = UIViewContentModeScaleAspectFill;
    hopeful.clipsToBounds = YES;
    hopeful.layer.cornerRadius = 3;
    hopeful.layer.masksToBounds = YES;
    hopeful.frame = CGRectMake(24, 26, 157, 190);
    UIImage *breezeRadianceElevate = [UIImage imageNamed:@"images/image_7.png"];
    if (breezeRadianceElevate) {
	    hopeful.image = breezeRadianceElevate;
    }
    self.unwindWispImageView = hopeful;
    [self.contentView addSubview:hopeful];


    //: 描述_8
    self.kindredVortexHammerTextField = [[UITextField alloc] init];
    self.kindredVortexHammerTextField.frame = CGRectMake(30, 10, 56, 153);
    [self.contentView addSubview:self.kindredVortexHammerTextField];
}


@end